package com.ruoyi.system.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.util.List;

/**
 * 行政返回
 * @Author Nuanyang
 * @Data 2023/5/27 15:25
 */
@Data
@ExcelIgnoreUnannotated
public class SysRegionVo {

    private static final long serialVersionUID = 1L;

    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;
    /**
     * 行政区划代码
     */
    private Long code;

    /**
     * 名称
     */
    private String name;

    /**
     * 上级id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long parentId;

    /**
     * level_id
     */
    private String levelId;

    private List<SysRegionVo> children;


}
